import request from '../utils/request';

// 车辆查询
export function driverList (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/driver/list',
        method: 'post',
        data
    });
};

export function driverLock (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/driver/lock',
        method: 'post',
        data
    });
};

export function driverUnlock (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/driver/unlock',
        method: 'post',
        data
    });
};
//安全员空闲时间段查询接口
export function searchDriverFreeTime  (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/driver/searchDriverFreeTime ',
        method: 'post',
        data
    });
};
//根据车辆预约时间查询空闲的安全员接口
export function searchDriverByCarTime (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/driver/searchDriverByCarTime',
        method: 'post',
        data
    });
};